<%--
  Created by IntelliJ IDEA.
  User: WT-SUN
  Date: 2017/5/8
  Time: 11:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html>
<head>
    <title>添加培训计划</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/train/plan/add.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<form id="formPlan" method="POST">
    <div class="information">
        <div class="information-title">
            <p>培训计划基本信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one" >
                    <label class="lable-style">年度:</label>
                    <input   type="text" id="yearAnnual" name="year" editable="false" style="width: 240px;" >
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">计划分类:</label>
                    <input id="planTypeId" name="planTypeId" type="text" style="width: 240px;" data-options="required:true">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">培训类别:</label>
                    <input id="trainTypeId" name="trainTypeId" type="text" style="width: 240px;" data-options="required:true">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划开班月份:</label>
                    <input name="planStartMonth" type="text"  editable="false" class="easyui-datebox" id="planStartMonth"
                            style="width: 240px;">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">专业类别:</label>
                    <input id="professionalTypeId" name="professionalTypeId" type="text" style="width: 240px;" data-options="required:true">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">培训级别:</label>
                    <input id="trainLevelId" name="trainLevelId" type="text" style="width: 240px;" data-options="required:true">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否外部机构培训:</label>
                    <label><input name="isExternal" type="radio" value="1" />是</label>
                    <label><input name="isExternal" type="radio" value="0" checked="checked"/>否</label>
                    <span>*</span>
                </div>
                <div class="form_one" id="deptDiv1">
                    <label class="lable-style" >主办单位:</label>
                    <input type="text" style="width: 240px" name="hostDeptId" id="hostDeptId" data-options="required:true">
                    <span>*</span>
                </div>
                <div class="form_one" id="deptDiv2" style="display: none">
                    <label class="lable-style">主办单位:</label>
                    <input type="text" class="easyui-textbox" style="width: 240px;" name="hostDeptName" id="hostDeptName" data-options="required:false">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">培训机构:</label>
                    <input name="trainDeptId" type="text" class="easyui-textbox"  style="width: 240px;"/>
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否取证:</label>
                    <label><input name="hasCertificate" type="radio" value="1" checked="checked" />是</label>
                    <label><input name="hasCertificate" type="radio" value="0" />否</label>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">证书种类:</label>
                    <input type="text" style="width: 240px" name="certificateTypeId" id="certificateTypeId" data-options="required:true">
                    <span id="recertificateType">*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">计划培训学时:</label>
                    <input class="easyui-numberspinner"  style="width: 240px;" value="0" name="planTrainHour"  data-options="required:true,min:0,precision:2">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;">
                    <label class="lable-style">培训班名称:</label>
                    <input name="name"  class="easyui-textbox"  type="text" style="width:600px;" data-options="required:true">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">计划培训人数:</label>
                    <input class="easyui-numberspinner formInput" style="width: 240px;" value="0" name="planTrainPerson"  data-options="required:true">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划举办期数:</label>
                    <input class="easyui-numberspinner formInput" style="width: 240px;" value="0" name="planTrainPeriod" >
                </div>
                <div class="form_one">
                    <label class="lable-style">计划开班地点:</label>
                    <input name="planTrainPlace"  class="easyui-textbox"  type="text" style="width:240px;" >
                </div>
                <div class="form_one">
                    <label class="lable-style">培训班负责人:</label>
                    <input name="principal" id="principal"  class="easyui-textbox" editable="false"  type="text" style="width:240px;">
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>培训计划附件</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <accessory:accessorySimple permission="write" packageKey="trainPlan" uploadUserId="${loginUser.id}"
                                   accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
</form>
</body>
</html>

